<template>
  <header class="app-bar">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="title">
      <slot></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </header>
</template>

<script>
  export default {
    name: 'app-bar'
  }
</script>

<style scoped>
.app-bar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  box-sizing: border-box;
  background: #1C1B23;
  z-index: 99;
}
.left{
  position: absolute;
  left:0;
}
.right{
  position: absolute;
  right:15px;
}
.title{ 
  font-size: 16px;
  font-weight: bold;
  color: #FEFEFE;
}
</style>
